package demo4;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/** 依赖关系
 *
 */
@Component
public class Person {
    /* @Autowried 自动装配 用于定义在属性上

     */
    @Autowired
    @Qualifier("winter")
    //private Shirt shirt;
    //private Sweater sweater
    private Clothes clothes;
    @Override
    public String toString(){
        return "Person{" +
                "Clothes=" + clothes +
                "}";
    }













}
